package user

class UsersController extends AuthController {
	
	def userService
	                         
	def index = {
		redirect(action: "list", params: params)
	}
	
	def list = {
		params.max = Math.min(params.max ? params.int('max') : 10, 100)
		[usuarioInstanceList: userService.getPetianos(params), tutorInstance:userService.getTutor(), usuarioInstanceTotal: userService.getNumberPetianos()]
	}
	
}
